const { setToken } = require("../utils/request")

module.exports = (req, res, next) => {
    const token = req.headers["authorization"];
    token && setToken(token);
    next();
}